async function getAll(ctx, next) {
    ctx.body = '中华人民共和国'
}
async function getById(ctx, next) {
    console.log('有id的请求');
    let id = ctx.request.params.id;
    ctx.body = id;
}
async function addItem(ctx, next) {

}
async function updateItem(ctx, next) {

}
async function delItem(ctx, next) {

}

module.exports = {
    'get /blogs': getAll,
    'get /blogs/:id': getById,
    'post /blogs': addItem,
    'put /blogs/:id': updateItem,
    'del /blogs/:id': delItem,
}